<?php

/**
 * Description of updatemodel
 *
 * @author adrian
 */
class Core_Model_Updatemodel implements Core_Model_Ormable {
    
    public $generate_query_handler;
    public $data_opreation_handler;
    
    public function main(array $variables = null, $table = null, $action = null, $where = '1') {
        $query = $this->generate_query($variables, $table, $action, $where);
        $this->data_operation($query);
        
    }
    
    private function generate_query(array $variables = null, $table = null, $action = null, $where = '1'){
        $this->generate_query_handler = new Core_Model_Updatemodel;
        return $this->$generate_query_handler->main($variables, $table, $action, $where);
    }
    
    private function data_operation($query){
        $this->data_opreation_handler = new Core_Data_Dataoperation;
        return $this->data_opreation_handler->action($query);
    }
}
